<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			// 1.对象的创建
			var obj = new Object()
			var obj2 = {}
			var obj3 = {
				name:"sc",
				age:18
			}
			// 修改年龄为19
			obj3.age = 19
			// 输出姓名
			console.log(obj3.name)
			// 添加一条表示爱好的数据
			obj3.aihao = "打游戏"
			// 删除爱好
			obj3.aihao = ""
			delete obj3.aihao
			// for in
			for(var key in obj3){
				console.log(obj3[key])
			}
		</script>
	</body>
</html>
